package testdao;

import javax.annotation.Resource;
import javax.jdo.PersistenceManagerFactory;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MyDao {

	@Autowired
	@Resource(name="persistenceManagerFactoryProxy")
	private PersistenceManagerFactory pmfInstance;
//	protected static PersistenceManager persistenceManager = pmfInstance.getPersistenceManager();

	public PersistenceManagerFactory getPmfInstance() {
		return pmfInstance;
	}
	
	
}
